import request from '@/utils/request';

/**
 * 获取所有用户(会员)
 */
export function listUsers() {
    return request({
        url: '/member/getAllMembers',
        method: 'GET'
    });
}

/**
 * 获取所有用户(会员)
 */
 export function delUser(data) {
    return request({
        url: '/member/updateMemberToVip',
        data
    });
}

/**
 * 会员状态切换
 */
export function triggerUserVIPStatus(data) {
    return request({
        url: '/member/cancleMember',
        data
    });
}